package br.com.future.constants;

/**
 * I know that Singleton is an avoid pattern, but this case is really needed. <br>
 * This singleton will be called when Spring is starting up the beans, and will mark the current time.
 *
 * @author Rafael Castanho Ferreira (mailto: rafa.ferreira@gmail.com)
 * @since 03-2011
 */
public class UptimeSingleton {

	private static final UptimeSingleton INSTANCE = new UptimeSingleton();
	private static double startupTime = System.currentTimeMillis();

	private UptimeSingleton() {
	}

	public static double getStartupTime() {
		return startupTime;
	}

	public static UptimeSingleton getInstance() {
		return INSTANCE;
	}
}
